<!DOCTYPE html>
<html>
<head>
  <script src="http://cdn.bootcss.com/tinymce/4.4.3/tinymce.min.js"></script>
  <script>tinymce.init({ selector:'textarea' });</script>
</head>
<body>
  <textarea id="elm1" >Easy! You should check out MoxieManager!</textarea>
  <input type='text' name='text' value='' id='inputcon' placeholder=""></input>
  <input type="button" onclick= "doy()"/> 


  <script>
    function doy(){
        var tmp= tinymce.get('elm1').getContent();      //此函数可获得编辑框内容   
        document.getElementById('inputcon').value = tmp;

        // document.write(tmp);
        
    }
  </script>
</body>
</html>